package com.goodlearning.gloriamobile.dto;

import java.io.Serializable;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * notice type 기준으로 공지구분 0(전체,학과), 1(취업센터), 2(북카페)
 * 하단은 요청시 응답으로 받은 결과 
 * 성공 : 기준키(idx), 공지알림대상(part), 제목(title), 파일명(filename), 작성일(regdate), 작성자(writer)
 * @author rapty54
 *
 */
public class GetNoticeResultDto implements Serializable,Parcelable{

	/**
	 * Generated by serialVersion UID
	 */
	private static final long serialVersionUID = 931714181635017604L;
	
	private String idx;
	
	private String part;
	
	private String title;
	
	private String filename;
	
	private String regdate;
	
	private String writer;
	
	private String totalPage;
	
	private String noticePage;
	
	public GetNoticeResultDto() {
		
	}
	
	public GetNoticeResultDto(Parcel in) {
		readFromParcel(in);
	}
	/**
	 * 
	 */
	@Override
	public int describeContents() {
		
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(idx);
		dest.writeString(noticePage);
		dest.writeString(part);
		dest.writeString(title);
		dest.writeString(filename);
		dest.writeString(regdate);
		dest.writeString(writer);
		dest.writeString(totalPage);
	}
	
	private void readFromParcel(Parcel in) {
		
		idx=in.readString();
		noticePage=in.readString();
		part = in.readString();
		title = in.readString();
		filename=in.readString();
		regdate=in.readString();
		writer=in.readString();
		totalPage=in.readString();
		
	}
	
	public static final Parcelable.Creator CREATOR=new Parcelable.Creator() {

		@Override
		public GetNoticeResultDto createFromParcel(Parcel in) {
			return new GetNoticeResultDto(in);
		}

		@Override
		public GetNoticeResultDto[] newArray(int size) {
			return new GetNoticeResultDto[size];
		}
	};
	
	public String getIdx() {
		return idx;
	}

	public void setIdx(String idx) {
		this.idx = idx;
	}

	public String getPart() {
		return part;
	}

	public void setPart(String part) {
		this.part = part;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getRegdate() {
		return regdate;
	}

	public void setRegdate(String regdate) {
		this.regdate = regdate;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public String getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(String totalPage) {
		this.totalPage = totalPage;
	}

	public String getNoticePage() {
		return noticePage;
	}

	public void setNoticePage(String noticePage) {
		this.noticePage = noticePage;
	}

}
